package com.xuecheng.content.service;

import com.xuecheng.base.exception.ResponseResult;
import com.xuecheng.content.model.dto.*;
import com.xuecheng.content.model.po.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2025-05-21
 */
public interface TeachplanService extends IService<Teachplan> {

    List<TeachplanTreeNodeDto> selectTeachTreeNodes(Long courseId);

    TeachplanDto createChapter(SaveTeachplanDto saveTeachplanDto);

    ResponseResult deleteChapter(Long teachplanId);
    void teachplanMoveDownOrUp(Long teachplanId, String type);

    TeachplanAndTeachplanMediaDto teachplanAndTeachplanMedia(Long teachId);

    TeachplanAndTeachplanMediaDto teachplanMediaUpdateFile(MediaFilesDto mediaFilesDto);

    List<Teachplan> selectListByCourseId(String courseId);
}
